﻿#pragma once
#include "AstNode.h"
#include "Parameter.h"

class DefGen;
class AstDef : public AstNode
{
public:
	AstType* type;
	std::vector<Parameter> vars;
private:
	virtual void draw(std::ostream& os);
	virtual CodeGen* makeGen(SiContext* parent);
private:
	DefGen* makeDefGen(SiContext * parent, AstType* type, const Parameter& var);
};

